Add functions to push/pop chars on a string

Signed-off-by: Thomas Hewton-Waters <thomashw@me.com>