The IUPAC system deals with functional groups two different ways.
Modification of the hydrocarbon name to
indicate the presence of a functional group.
alcohol, -OH use -ol ending.
ether: CH3CH2-O-CH3
use methoxy methoxy ethane
thiol: R-S-H use -thiol ending.