fixed silly mistake... using wrong String method to find out if a character exists in a String