make word pairs into single words using map, flatten, and split methods