Sed spaces detection corrected
