Moved replaceVariables function to TakteeUtils