array defination checker: empty & unexpected spaces