removing space from message after custom username

Since lastName param is empty API puts additional space after username