Initial string parser done. Need to start sliding these out into their own funcs and tidying up.