moved input string creation