You can simply use:
UPDATE customers_basket SET products_id=CONCAT('S', SUBSTRING(products_id FROM 2));
ie: Instead of replacing the initial āUā with āSā, just start with āSā and copy the remaining characters.
This, of course, assumes that all products_id entries begin with the letter āUā. If they do not, just add the WHERE clause, for example:
UPDATE customers_basket SET products_id=CONCAT('S', SUBSTRING(products_id FROM 2)) WHERE LEFT(products_id, 1) = 'U';
source share