altered cleanup cat/ref language string