updating frequency input string