The Prince of Wales praised all the young people who have overcome homelessness and transformed their lives, calling them "inspirational".