check if input is numeric