Update Cli.php

trim on readline need to be fully done to work on all OS