Add strcpy and optimize intToString func