That's in the manual: http://nim-lang.org/docs/manual.html#taint-mode. And knowing the notion of distinct types (as opposed to aliases) is required.
The taint-mode lets you distinguish between strings from a user input and such, unless they are validated and explicitly casted as strings, and all the other strings. Ruby has this same feature, with examples in its docs, maybe it's worth for you to look at.