refactored string join mathod
added some code to start testing threads