Add function to strip units from values.