fix rubocop errors for palindrom_two