This is the initial version that uses strings. The char array version was used only because of multiple WAs. I suspected that it was due to leading spaces in numbers! However, the fix was needed for leading zeroes, not leading spaces! Smaller number with leading zeroes that made it larger than 10 digits was causing WA. This strings version is much faster.