fixed issue with trim sanitizer