Changed method call of deprecated parse() to text()