processText() function added to play sound from a list
using processText we search the input text for .wav strings