`envVar.endsWith("$") || envVar.endsWith("%")`.

Do you really have to handle a `$`at the end? How do the other Meterpreters do this?