Trimming whitespaces when creating new resources.