Added static method to parse username and hostname