function similar to string.h strcat