fix function composition order

Caused test TestStringType::testTrimTail line 37 to fail.

function composition is after.compose( before )