Properly parse integers