fixed rega string handling