Use goog.isString() instad of typeof check