Add append method to string.
Make functions static if appropriate.