Remove unnecessary trim