Strip the line properly and use correct separator