KT-1859 filter method applied to a string does not iterate over chars

Added filter and reverse methods to String