PHP-like string functions as XSLT 1.0 named templates:string-tools.xsl. Edit the parameters, then test.
str_pad: Pad a string to a certain length with another string
Top ↑str_repeat: Repeat a string
Top ↑str_replace: Replace all occurrences of the search string with the replacement string
Top ↑substring-after-last: Returns the rest of a given string after the last given needle
Top ↑substring-before-last: Returns the contents of a given string before the last given needle
Top ↑wordwrap: Wraps a string to a given number of characters
Top ↑