Refactoring. Created factory function for actions.
Add base for Strings tasks