Removing extra newline char in properties file