This will fail for String objects. Use the following instead:

```javascript
Object.prototype.toString.call(style) === '[object String]'
```

Or better still, use the Underscore utility:

```javascript
_.isString(style)
```