Detecting comma and decimal point