implemented to_s method
Added test case for to_s method