error check strings