Methods to convert String to Int