add tests for ft.string.truncate