replacing empty parameters with null value