Fixed usage of trim(), not available in IE