To print entered string