bug fix from string