Added working split and whitespace trim to GOI and APG processing functions