Remove blank element form end of list