[ticket/12793] Remove cast to string

Remove cast to string for ... string

PHPBB3-12793