fix on string instead of array