Fix SOAP-557 remove empty spaces from resource field