changed strcat to string

deprecated function