'why there is enter between this out put ? I trying to get curent user name and make directory path

I'm using Process to run OS commands in Linux with flutter and I want to get current username and make directory path to music by this code but its get me output like this. the code

devloper.log('*********Scaning Directory*********');
var username = await Process.run('whoami', []);
devloper.log(username.stdout);
String path = '/home/${username.stdout}/Music';

enter image description here

this space makes me crazy! where its come and How can I get out put like this /home/usename/Musci



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source