Don't use trimRight since it isn't supported in IE
v0.6.1