added empty whitespace removal