CMS-3056 Live Edit - It should not be possible to add a layout to another layout
Added method replaceTokens to StringHelper.