replacing '' with None