Improve the suggested fraction calculator to also accept symbols and return an error message when an invalid operation is specified.