# NOT RUN {
StrTrim(" Hello world! ")
StrTrim(" Hello world! ", method="left")
StrTrim(" Hello world! ", method="right")
# user defined pattern
StrTrim(" ..Hello ... world! ", pattern=" \\.")
# }
Run the code above in your browser using DataLab