updated the way "text" is processed

will now cast the following types to string, if necessary:
  ["number","boolean","function"]