keyboard navigation - chrome and ff
String#trim() in IE