Copy missing trim methods from Grease-Core