I have been looking for a script which would also process conditional statements in string. for e.g: $string = 'My name is {name} and I scored {if: score>10 then well else poorly}.