Fix problem with scanning strings.