When the entry has a quote mark, the parsing fails
echo "Test' Network:password" | xargs
xargs: unterminated quote
I do the xargs trick to remove trailing whitespace. I should check if we can use sed for this:
echo "Test' Network:password" | sed 's/^[[:blank:]]*//;s/[[:blank:]]*$//'
At worst, just ignore the xargs and assume the passwords do not have trailing whitespace.