Define functions in closure instead of string replacement
Insert multiply symbol
insert pow