Collection of helper functions to deal with text for Angular JS