helper: code refactoring (read_string())
helper: code refactoring(wrapper)
helper: code refactoring
security: fix possible buffer overflow