Removing logger and whitespace