Now accepts EM and REM values for offset

Added a mini function to parse EM and REM values, doesn’t matter how
they are typed in terms of spaces and upper/lower case, the function
will handle it. The user just passes in a em/rem string, and still accepts numeric values as they are.