Print a quine that contains the input Task

You will be given a string in the input consisting only of the characters from a to z, i.e. the input will match the regex /^[a-z]*$/.

Your output should be a complete program in the same language, whose source code contains the input, and is a proper quine.

Example

Your program would receive the input abc and output:

...abc...


The above should be a complete program in the same language which takes no input and outputs:

...abc...


i.e. it outputs itself.

Scoring

This is code-golf. Shortest answer in bytes wins.

References


What counts as a proper quine?
Python 3, 57 61 bytes

lambda x:"s='s=%r;print(s%%s)';print(s%s)".replace('s',x+'x')


Takes a basic python 3 quine from here and replaces the variable name with the input.

Note: As pointed out by Hyper Neutrino in comments, this does not work for reserved keywords like for, if, etc. 

Appending a character that none of the reserved keywords ends with such as 'x' or any number fixes this. (Ørjan Johansen).