cleanup register names processing