def replace_keyword(src: str, rpls: list) -> str:
	"""
	Replace keyword ::r:: in `src` with provided text in rpls.
	"""
	replace_count = src.count("::r::")
	if replace_count == 0:
		return src
	length = len(rpls)
	replaced = "".join(src) # Make a copy
	for text in rpls:
		replaced = replaced.replace("::r::", text, 1)

	return replaced