Fixed lowercase characters throwing NullPointerExceptions