I'm still always surprised that java doesn't have a native string type and instead uses a char[]/offset/size data structure.
Don't forget to 'new String()' your substrings!
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4513622
#googplus