Textmogrify is a fs2 friendly library for manipulating text. But it is still evolving and not complete. It's not recommended for production use.
You can check out the microsite for some docs and examples:
https://valencik.github.io/textmogrify
libraryDependencies = "pink.cozydev" %% "textmogrify" % "0.0.7"