Fix too-short strings

Sets up a constants which determines the length of all string variables. This makes it a lot easier to increase the length in case of issues like #128.