Grrr. also String#trim isn't available in older browsers.