Add string length limiting utility

As explained in https://github.com/DSH105/MenuAPI/pull/4/files