add string_to_int

add string_to_int parser without use library functions.