dynamic inputbox update

added function for generating same character strings