sanitizing number to convert