Postgresql Find Last Occurrence Of Character In A String