Postgresql Substring Between Two Strings For Dreadlocks