fixing tomcats handling of strings