Apply new function on an object
<p>I have a string, and I want to do a bunch of things on it at once (it will be a bunch of replacements) in a function.  I want to do something to the degree of <code>string.color()</code> if the string is called <code>string</code> and the function I make is <code>color()</code>.  How should I declare <code>color()</code>?  Should I do it in a class extending <code>String</code> or an interface?  Should I just give that up and do <code>color(string)</code> instead?  </p>
