take out unnecessary list containing empty string