Reimplemented StripPunct and StrToLower

StripPunct and StrToLower have been reimplemented with boost string
algs, which are more concise than the old versions, and perform as good
as using bind instead of lambdas for the predicates.