history was taking in blank strings, fixed