String classes concept in any language
I would like to know if in any language is something like this:

There are often strings that gives to an application at runtime some information that is not of informative but more functional so every character really matters. But if you mistype a single character there is a problem that can be found only in runtime.

So what I would like is a language that would find such a problem in compile time, is there anything that could do the trick in any language?

Thank you.
String classes concept in any language
===

I would like to know if in any language is something like this:

There are often strings that gives to an application at runtime some information that is not of informative but more functional so every character really matters. But if you mistype a single character there is a problem that can be found only in runtime.

So what I would like is a language that would find such a problem in compile time, is there anything that could do the trick in any language?

Thank you.