Prevent user-entered symbols from crashing the script