If I reuse the content of the website, for example if the content of my Website for the URL
The Best Brown Bread in New York, then if someone opened my other example URL
www.mydomain.com/Chicago its content should be
The Best Brown Bread in Chicago.
My content is mostly static but replaced by the last word in the URL, then for
www.mydomain.com/myword the keyword is "myword" and the output for the content comes like
The Best Brown Bread in myword
So, in case of large text, replacing just one word or few words will work? Or will Google penalize me for this?