moved string builder to helper
unit tests for grd5type.c