Sql String Functions Substring In Postgresql