Added a null check for the separator