Return 'undefined' in case of empty line