manipulates two strings