Switched naming convention on truncate/format functions so that it doesn't break any existing code.
Import truncate/format functions into module level.