Update str.c

Ok, this looks promising, needs test.