Replace foldl by foldr for string concatenation.