Added String& return types to WString internal manipulation functions

See issue #506