trimming parsing of numbers by eliminating unnecessary check