Since you're using two strings you really should use the substr() function instead of the copy() function. The copy() function copies the substring into the first parameter and returns the number of characters copied.
By the way that first parameter should be a pointer to an array of char not a string.