import re

text_to_match = "This is a test string"

if re.match("string", text_to_match):
	print("Matched 'string'")
elif re.match("This", text_to_match):
	print("Matched 'This'")
else:
	pring("No match")