Group string type functions into classes, fix resp. tests