Don't slice onlu trim the modified string through str_replace so value are stored correctly