Converting String into int

If the number is the first thing in the string then it should be working right
away (if number is expected, but string is given, then it automatically tries
to convert the string to number).