Cleaned up code to allow any number of characters. Thanks to https://github.com/darkargon!