Language changes: ~str is deprecated