removed handling of non-text types, created rspec test for Strappy, and reformatted code