fix jboss string check