make a function of textbox with parameters string