Fixed memory leak and nullpointer crash in telnetserver
Added lstrip() function to utils