Fix #1 - Add condition in check value

In case no number are in the value after replacing format.
happended when only comma or dot are in the user's input