Calculate symbol string lengths for bases

This makes it more clear where these "magic numbers" come from.
Test valid inputs with the strict parameter