how to check given string has onlu characters code example Example: How to check a string for specific characters? if '$' in myString: