String concanation more efficient algorithm and string to integer