exhaustive test of String#trim behavior