package co.phoenixlab.discord;

import java.util.HashSet;
import java.util.Set;

public class Configuration {

    private String email;
    private String password;
    private String commandPrefix;
    private Set<String> blacklist;

    public Configuration() {
        email = "";
        password = "";
        commandPrefix = "!";
        blacklist = new HashSet<>();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getCommandPrefix() {
        return commandPrefix;
    }

    public void setCommandPrefix(String commandPrefix) {
        this.commandPrefix = commandPrefix;
    }

    public Set<String> getBlacklist() {
        return blacklist;
    }
}

@@ -189,24 +189,64 @@
 mandPrefix;%0A
+    private transient int prefixLength;%0A
     private 
@@ -370,16 +370,42 @@
  = %22!%22;%0A
+        prefixLength = 0;%0A
         
@@ -798,32 +798,250 @@
 dPrefix;%0A    %7D%0A%0A
+    public int getPrefixLength() %7B%0A        //  Lazy load after we load from config file%0A        if (prefixLength == 0) %7B%0A            prefixLength = commandPrefix.length();%0A        %7D%0A        return prefixLength;%0A    %7D%0A%0A
     public void 
@@ -1117,32 +1117,84 @@
  commandPrefix;%0A
+        prefixLength = this.commandPrefix.length();%0A
     %7D%0A%0A    publi

Add command prefix len for substr optimization