fix to preserve trailing whitespaces from prefix when delimiter sticks to left