Removed some redundant code from String::operator==()

Some versions of ```String::operator==()``` had redundant code with their corresponding constructors.