added checking for non-alphanumerics