Removing empty lines, removing spaces