trim() the hedges, array_map() the modes.