Memory fixes - quit on empty line and memmove length