How to solve " trimming lenghth is too long " ?