implement string_to_integer conversion