update API names
rename truncate to truncate-text