In all suits under this act, the court may investigate and determine all questions of conflicting or controverted titles, remove clouds therefrom, and quiet, establish and confirm the titles to such lands.