correcting string interpretation