String operation bug removed