fix regex when blank