def _replace_val(line,find,replace):
	""" Find and replace a value in a string.

	Keyword arguments:
	line -- string.
	find -- value to find.
	replace -- new value.
	"""
	strList = line.strip("\n").split()
	flag = False
	for i,val in enumerate(strList):
		if val==find:
			flag = True
			strList[i] = str(replace)
	line = " ".join(strList)+"\n"
	return line, flag