implement my own truncate with plain erb