parseInteger

Parse a string into an integer, removing any thousand separators.