replaced deprecated strcat() with string()