replace function nil?/length to blank?