Change text from foreach method to for expression