Removed unused variable
Removed an unnecessary ternary operator
Added ability to parse a variable that contains the contents of a .po file