Bug fixed with fitness function comparing the incorrect strings