I would rather see us use the framework's methods where possible - http://code.angularjs.org/1.2.0/docs/api/angular.isString