is there a way to check if a string contains a character