should add a function/bool/int like GetPlayerNameN(playerid); to find the name of the play without space. Ex: Kevin_Rambo instead of GetPlayerName(playerid); which will give you Kevin Rambo
That can be scripted easily. Get the player's name using normal function and run a loop to it's length. Replace the characters to spaces or whatever you need and then return it. It's done.