fixed memory issue from strvcompact()