Changed the String API to make more sense (or similar to Qt).