http://stackoverflow.com/questions/14496006/finding-last-occurence-of-substring-in-string-replacing-that
Anonymous
Prototype before polishing. Get it working before you optimize it.