Create a function that takes in a string and evaluates it according to Python's syntax rules.
String: "2+3*4"
def evaluate_string(str):
 try:
 result = eval(str)
 return result
 except SyntaxError:
 return "Syntax Error"