Added spaces to materials EditText display items.

Trimmed them out before passing the materials array to the database
query.