Added function to parse string into room