docs(dialog): fix sample code

I've added missing single quote chars and concatenation to output valid sample code in docs.