check for empty string add check for null