Added input sanitization for numbers