check that only certain characters are in string code example Example: How to check a string for specific characters? if '$' in myString: