I just researched my \"bug\" and it turned out to be a new feature in Django 1.9 that CharFields strip spaces by default : https://docs.djangoproject.com/en/1.9/ref/forms/fi
strip=False
in the model field for CharFields.
Django TextField do not support this stripping feature so you have to do it on your own. You can use the strip method.
abc.strip()