AngularJS service encapsulating a variety of string transformations