Do this in javascript all the time.
Adding a `+ ""` forces the object to become a string.
Though not sure why it was required for this particular comparison.
Though not sure why it was required for this particular comparison.
I've written similar Java code for that reason.