add function `:truncateLeading` for language :java8