refactoring single character global variable named ``s``..