fixing the str error