Add more documentation for string functions (see #2147 & #2242)