A collection of R function for string manipulation