Basic String Programs
1. Reverse a String
2. Check if a String is Palindrome
3. Count Vowels and Consonants in a String
4. Remove All Whitespaces from a String
5. Convert String to Uppercase/Lowercase
6. Find the Length of a String
7. Compare Two Strings
8. Concatenate Two Strings
9. Find Duplicate Characters in a String
10. Check if Two Strings are Anagrams
Intermediate String Programs
11. Count the Number of Words in a String
12. Find the First Non-Repeating Character
13. Remove Duplicate Characters
14. Check if a String Contains Only Digits
15. Replace All Occurrences of a Substring
16. Toggle Case of Each Character
17. Find the Frequency of Each Character
18. Sort Characters in a String Alphabetically
19. Check if a String is a Pangram
20. Find the Longest Word in a Sentence
Advanced String Programs
21. Implement String Compression (e.g., aabbb → a2b3)
22. Check if a String is a Rotation of Another
23. Find All Permutations of a String
24. Implement KMP Algorithm for Pattern Matching
25. Check Balanced Parentheses in a String