Created String ranges. Removed if else chunk which is now replicated by
“System.out.println("Ranges: "+ranges);”, because none of the strings
are now null so no need to check.