remove blanks helper functions