fix jshint error

```javascript
[L19:C58] W116: Expected '===' and instead saw '=='.
while(input.charAt(input.length-1) == ' '){
```