Possible solution to get string function Taber requested

Not sure if this is what you were thinking when you asked me to write this, so i figured I'd make sure i didn't clobber your code. Please take a look at this and let me know if this is sorta what you wanted. feel free to reject the pull if its not what you wanted.