Best alternatives to convert String to int efficiently

The 0 will not work because the value of zero is used to indicate the end of the text ( ASCII uses zero as the NULL character, so normally it will not appear within any text).