Need some help in storing dynamic and static values in a variable

Thanks @kazurayam .
I figured out the solution.No quoted strings were required to display the expected output.