invert check so we fail faster

there's no reason to to_sym the string if it doesn't match the regexp
anyway