publish getStrLn function.