AUI-1577 Consistent truncate behavior plus tests
AUI-1577 - Source Formatting
AUI-1577 - Source formatting