Replaced population method 'trim' with 'populateTo'.

The new method can both inject and trim.