truncate text functionality for moreless plugin