Code to process GPA string streams