When I make the code changes I get this error:

Parse error: syntax error, unexpected '(', expecting ')' in /home/neitarms/public_html/includes/modules/payment/beanstream.php on line 338
in the administrator back end, Payment module page. Only three Authorize.net modules load, all the rest don't load.

This is my line 338:

'substr'($order->info['shipping_method'], 0, 30);