Removing duplicate word