Perhaps it's better to use nMaxLegalStr here than using hardcoded 32.

Change-Id: Idee4667f5ef9aa71af05139b6fc7ee8a5166b398