Remove extra whitespace between list elements