Fix for issue #1

Template doesn't working when dynamic value is at start of string.