Simplify trim check