Convert string to text for PostgreSQL in Heroku