Added an if-else loop to catch non-ASCII letters and spaces