remove new line character in checkValue

some times innerHTML get string like
```
"
0
"
```
"0" with new line chareters