Stricter parsing for numeric inputs.