Add a check in string construction.