removing space from pre