updating to PR comments, removing empty spaces, utilizing the underscore unique function