added read and print functions for my_string