There is a PHP function called substr
http://nl3.php.net/substr . You could use substr($product['name'], 0, -1);
This will remove the last character. If you use -2
it will remove the last 2 characters and so on.
substr('yourstring'{string}, startindex{int}, endindex{int});