Removed the unnecessary function  that converted integers to string. Used an STL function instead.