Implement stream input operator for string class