Added support for custom command upcasing, downcasing and repeating.