Update string.h, string.c and text.c

Fix a bug in the scroll function which would prevent correct scrolling behaviour. Additionally add in a memsetw function.