Why are spaces being removed when prepopulating forms?