modified JoinString for test valueOf method in Class String