Update TextValidater.rb

added methods to the TextValidater class
Now functions as expected.