rewriting for single string slicing method started;
space searcher function added but not debugged