expand expand (text) Given an array of strings (text) containing tabs, replaces each tab character with the equivalent number of spaces.