Well if you do end up doing char-by-char checking, you can just read from the & through the ; and convert that to the string.