I have a vector like this: a <- c("thisIsName", "thisIsAlsoName", "andThisName") How to break this into pieces and produce a vector with unique parts: this Is Name Also and This -J