Custom string substitutors functionality

As requested here are the unit test for such functionality (plus the necessary implementation to compile). If this is functionality is approved, the I'll modify this pull request with an actual implementation.

/Alex