Fix optimised parsing of repetitions of strings.