Prevent non-numeric character inputs