$_GET value is losing it’s space

It turns out it was the WPML redirection that is removing the spaces from my input.

To fix it, I’ve added the language code in the form action.

<form action="/<?php echo ICL_LANGUAGE_CODE; ?>/" method="get" id="searchform">