This will also work. The TRIM will remove any unneeded spaces.

Formula: copy to clipboard
=TRIM(SUBSTITUTE(A1,"(GB)",""))