title: making "string".functions() functions python
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4698493/can-i-add-custom-methods-attributes-to-built-in-python-types">Can I add custom methods/attributes to built-in Python types?</a>  </p>
  </blockquote>
  
  
  
  <p>Throughout using Python I have seen many things that can be used on strings such as <code>.lower()</code> or <code>.startswith()</code> or <code>.endswith()</code>, however, I am unsure on how to make functions that act similar to it, as what I thought of would have to use a class that passes the string to the function, and I simply want to do something like <code>"the string".myfunc()</code> instead of <code>MyClassObjWithString.myfunc()</code>. </p>
  
  <p>Is there any way to make functions like this?</p>