alias: Option[String])

How to accept String??

val alias = config.getString("alias")
    if (alias.isEmpty) {
      accountSettings(name, None)
    } else {
      accountSettings(name, Some(alias))
    }
This is correct ??