delete trim functions due to warning by mozilla.
add comment