Add string logic to scanner