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.