Add methods

Add static methods, make some decisions for access modifiers, tried to
make it faster again and add new method for clean strings. (Prevents
crash at creating playfair square and more)