Added str casting to allow waitfor exception handling to print the locator