Got shift operator<< working as well as reversing in the string constructor