Simplified tests by using ~str and ()