You can just merge trim() with the line above.