Replace [] with getProperty()