When and where to use STUFF function in SQL Server and how it is different from replace

Replace is used to replace all the repition. STUFF function is used to overwrite existing characters. Using this syntax, STUFF (string_expression, start, length, replacement_characters) Here  start is the starting position, length is the number of characters in the string that are substituted, and replacement_characters are the new characters interjected into the string.