IE 8 compatibility, lacks native trim() in String