add valid stock name function
changes