Replace match with getOrElse() pattern