Solve a boring problem, implement converting string to integer number for various cases.