provide better soultion to trimming off "{"s