Substring And Substring In Postgresql