[EDIT]
Correction, you're using the wrong terminology.
You don't "use a string in a bitmap". You're trying to use the return value from your username function in a path.
This has nothing to with a Bitmap. This is just string manipulation in C.
For now, simplify what you're doing. Forget the Bitmap junk and stop trying to use as few lines of code as possible. DO NOT DIRECTLY USE THE RETURN VALUE OF A METHOD CALL IN A COMPOUND STATEMENT. You're just making it harder on yourself to debug your code.
Read:
https://www.codingame.com/playgrounds/14213/how-to-play-with-strings-in-c/string-concatenation[
^]