changed deprecated strcat to string