Used memcpy instead of strcpy