Scala : Privacy violation (String usage)