Added support for grades in strings.