add input and display-string function