Template:Rtrim

Use this template in remove trailing spaces from a string.