Updated input validation to detect non-numeric input that starts with numeric input.