Update reference manual.
Move string utility functions into library.