Update check of input

To take into account all input and keep only numbers and . and ,